{% if user.username %}
Hello {{ user.username }} | <a href="/accounts/logout">logout</a>
{% else %}
<a href="/accounts/login">login</a> | <a href="/accounts/register">register</a>
{% endif %}
  